import request from '@/utils/request'

// 查询激活码列表
export function listChangdi(query) {
  return request({
    url: '/system/changdi/list',
    method: 'get',
    params: query
  })
}

// 查询激活码详细
export function getChangdi(id) {
  return request({
    url: '/system/changdi/' + id,
    method: 'get'
  })
}

// 新增激活码
export function addChangdi(data) {
  return request({
    url: '/system/changdi',
    method: 'post',
    data: data
  })
}

// 修改激活码
export function updateChangdi(data) {
  return request({
    url: '/system/changdi',
    method: 'put',
    data: data
  })
}

// 删除激活码
export function delChangdi(id) {
  return request({
    url: '/system/changdi/' + id,
    method: 'delete'
  })
}
